package com.crazy.crazybusinessservice.controller.inner;

import com.crazy.crazybusinessservice.service.DayInitializationService;
import com.crazy.crazyserviceclient.service.BusinessFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.math.BigDecimal;

@RestController
@RequestMapping("/inner/liquidation")
@Slf4j
public class LiquidationInnerController {

    @Resource
    private DayInitializationService dayInitializationService;

    @PostMapping("/dayinit")
    public BigDecimal getNetWorthByProductID(@RequestParam int productID) {
        return dayInitializationService.getNetWorthByProductID(productID);
    }
}
